<!DOCTYPE html>
<!--
  Copyright 2016 Google Inc. All rights reserved.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      https://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License
-->
<html>
  <head>
    <meta charset="utf-8">
    <title>MDL Theme Demo</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
    <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
    <script src="assets/material-design-lite.css.js" charset="utf-8"></script>
    <style>
      .demo-theme__color {
        display: inline-flex;
        flex-direction: column;
      }
      .demo-theme__color__label {
        display: inline-block;
        box-sizing: border-box;
        width: 130px;
      }
      .demo-theme__color__block {
        display: inline-block;
        box-sizing: border-box;
        width: 130px;
        height: 50px;
        line-height: 50px;
        text-align: center;
        border: 1px solid black;
      }
      .demo-theme__text-styles {
        display: inline-flex;
        box-sizing: border-box;
        padding: 16px;
        border: 1px solid black;
        align-items: center;
        flex-direction: column;
      }

      @media(min-width: 768px) {
        .demo-theme__text-styles {
          flex-direction: row;
        }
      }

      .demo-theme__text-styles > span {
        padding: 0 16px;
      }
      .demo-theme--custom-light-bg {
        background-color: #dddddd;
      }
      .demo-theme--custom-dark-bg {
        background-color: #1d1d1d;
      }
    </style>
  </head>
  <body>
    <main>
      <h1>MDL Theme</h1>
      <h2>Theme colors</h2>
      <section>
        <h3>Theme colors as text</h3>
        <div class="demo-theme__color">
          <div class="demo-theme__color__label">Primary</div>
          <div class="demo-theme__color__block mdl-theme--primary mdl-typography mdl-typography--body2">Lorem ipsum</div>
        </div>
        <div class="demo-theme__color">
          <div class="demo-theme__color__label">Accent</div>
          <div class="demo-theme__color__block mdl-theme--accent mdl-typography mdl-typography--body2">Lorem ipsum</div>
        </div>
      </section>
      <section>
        <h3>Theme colors as background</h3>
        <div class="demo-theme__color">
          <div class="demo-theme__color__label">Primary</div>
          <div class="demo-theme__color__block mdl-theme--primary-bg"></div>
        </div>
        <div class="demo-theme__color">
          <div class="demo-theme__color__label">Accent</div>
          <div class="demo-theme__color__block mdl-theme--accent-bg"></div>
        </div>
        <div class="demo-theme__color">
          <div class="demo-theme__color__label">Background</div>
          <div class="demo-theme__color__block mdl-theme--background"></div>
        </div>
      </section>
      <h2>Text colors for contrast</h2>
      <section>
        <h3>Text on background</h3>
        <div class="demo-theme__text-styles mdl-theme--background mdl-typography mdl-typography--body2">
          <span class="mdl-theme--text-primary-on-background">Primary</span>
          <span class="mdl-theme--text-secondary-on-background">Secondary</span>
          <span class="mdl-theme--text-hint-on-background">Hint</span>
          <span class="mdl-theme--text-disabled-on-background">Disabled</span>
          <span class="mdl-theme--text-icon-on-background material-icons">favorite</span>
        </div>
        <h3>Text on primary</h3>
        <div class="demo-theme__text-styles mdl-theme--primary-bg mdl-typography mdl-typography--body2">
          <span class="mdl-theme--text-primary-on-primary">Primary</span>
          <span class="mdl-theme--text-secondary-on-primary">Secondary</span>
          <span class="mdl-theme--text-hint-on-primary">Hint</span>
          <span class="mdl-theme--text-disabled-on-primary">Disabled</span>
          <span class="mdl-theme--text-icon-on-primary material-icons">favorite</span>
        </div>
        <h3>Text on accent</h3>
        <div class="demo-theme__text-styles mdl-theme--accent-bg mdl-typography mdl-typography--body2">
          <span class="mdl-theme--text-primary-on-accent">Primary</span>
          <span class="mdl-theme--text-secondary-on-accent">Secondary</span>
          <span class="mdl-theme--text-hint-on-accent">Hint</span>
          <span class="mdl-theme--text-disabled-on-accent">Disabled</span>
          <span class="mdl-theme--text-icon-on-accent material-icons">favorite</span>
        </div>
        <h3>Text on user-defined light background</h3>
        <div class="demo-theme__text-styles demo-theme--custom-light-bg mdl-typography mdl-typography--body2">
          <span class="mdl-theme--text-primary-on-light">Primary</span>
          <span class="mdl-theme--text-secondary-on-light">Secondary</span>
          <span class="mdl-theme--text-hint-on-light">Hint</span>
          <span class="mdl-theme--text-disabled-on-light">Disabled</span>
          <span class="mdl-theme--text-icon-on-light material-icons">favorite</span>
        </div>
        <h3>Text on user-defined dark background</h3>
        <div class="demo-theme__text-styles demo-theme--custom-dark-bg mdl-typography mdl-typography--body2">
          <span class="mdl-theme--text-primary-on-dark">Primary</span>
          <span class="mdl-theme--text-secondary-on-dark">Secondary</span>
          <span class="mdl-theme--text-hint-on-dark">Hint</span>
          <span class="mdl-theme--text-disabled-on-dark">Disabled</span>
          <span class="mdl-theme--text-icon-on-dark material-icons">favorite</span>
        </div>
      </section>
    </main>
  </body>
</html>
